﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;

namespace PBDesk.Web.DocumentTypes
{/*
     * Use DocumentType attribute to specify various document type properties as in the 
     * following example:
     * 
     * [DocumentType(DefaultTemplate = typeof(Template1), AllowedChildNodeTypes = new Type[] { typeof(DocumentType1), typeof(DocumentType1)})]
     * public class ...
     */
    [DocumentType]
    public class SiteLevelDocType : Vega.USiteBuilder.DocumentTypeBase
    {/*
         * Use DocumentTypeProperty attribute to specify which properties will be treated as
         * a document type properties. Through this attribute you can also set various properties
         * of a document type (e.g. Description, Mandatory, Tab etc...)
         */
        [DocumentTypeProperty(UmbracoPropertyType.Textstring)]
        public string SiteName { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring)]
        public string SiteDescription { get; set; }
    }
}
